import {
  UploadOutlined,
  UserOutlined,
  OrderedListOutlined,
  BankOutlined,
  WhatsAppOutlined,
  TableOutlined,
  SmileOutlined,
  SelectOutlined,
  TransactionOutlined,
  SettingOutlined
} from "@ant-design/icons";
import React from "react";
const router = [
  {
    key: "/",
    icon: <BankOutlined />,
    label: "系统首页",
    component: React.lazy(() => {
      return import("../view/home/index.js");
    }),
    //component={React.lazy(() => import("../../home/index"))}
  },
  {
    key: "/maintenance",
    icon: <UserOutlined />,
    label: "运维管理",
    children: [
      {
        key: "/maintenance/parking",
        icon: <UserOutlined />,
        label: "停车场管理",
        component: React.lazy(() => {
          return import("../view/operation_maintenance/parking.js");
        }),
      },
      {
        key: "/maintenance/road_points",
        icon: <UserOutlined />,
        label: "道路站点管理",
        component: React.lazy(() => {
          return import("../view/operation_maintenance/road_points.js");
        }),
      },
      {
        key: "/maintenance/parking_space_management",
        icon: <UserOutlined />,
        label: "停车位管理",
        component: React.lazy(() => {
          return import(
            "../view/operation_maintenance/parking_space_management.js"
          );
        }),
      },
      {
        key: "/maintenance/identify_host",
        icon: <UserOutlined />,
        label: "识别主机管理",
        component: React.lazy(() => {
          return import("../view/operation_maintenance/identify_host.js");
        }),
      },
      {
        key: "/maintenance/pda",
        icon: <UserOutlined />,
        label: "poa管理",
        component: React.lazy(() => {
          return import("../view/operation_maintenance/pda.js");
        }),
      },
      {
        key: "/maintenance/Staff",
        icon: <UserOutlined />,
        label: "员工管理",
        component: React.lazy(() => {
          return import("../view/operation_maintenance/Staff.js");
        }),
      },
    ],
  },
  {
    key: "/vehicle",
    icon: <UploadOutlined />,
    label: "业务配置",
    children: [
      {
        key: "/vehicle/special",
        icon: <UploadOutlined />,
        label: "特殊车辆管理",
        component: React.lazy(() => {
          return import("../view/service_configuration/special_vehicle.js");
        }),
      },
      {
        key: "/vehicle/whitelist",
        icon: <UploadOutlined />,
        label: "车辆白名单管理",
        component: React.lazy(() => {
          return import("../view/service_configuration/vehicle_whitelist.js");
        }),
      },
    ],
  },
  {
    key: "/business",
    icon: <OrderedListOutlined />,
    label: "业务处理",
    children: [
      {
        key: "/parking/real_time",
        icon: <OrderedListOutlined />,
        label: "实时停车数据",
        component: React.lazy(() => {
          return import("../view/parking_management/real_time.js");
        }),
      },
      {
        key: "/parking/historical",
        icon: <OrderedListOutlined />,
        label: "历史停车记录",
        component: React.lazy(() => {
          return import("../view/parking_management/historical_parking.js");
        }),
      },
      {
        key: "/parking/car_data",
        icon: <OrderedListOutlined />,
        label: "车辆数据",
        component: React.lazy(() => {
          return import("../view/parking_management/car_data.js");
        }),
      },
      {
        key: "/business/certification",
        icon: <OrderedListOutlined />,
        label: "车辆认证",
        component: React.lazy(() => {
          return import("../view/business_process/vehicle_certification.js");
        }),
      },
      {
        key: "/business/remove",
        icon: <OrderedListOutlined />,
        label: "车辆认证解绑",
        component: React.lazy(() => {
          return import("../view/business_process/remove_vehicle.js");
        }),
      },
      {
        key: "/business/retrieval",
        icon: <OrderedListOutlined />,
        label: "车辆找回记录",
        component: React.lazy(() => {
          return import("../view/business_process/vehicle_retrieval.js");
        }),
      },
      {
        key: "/business/Illegal",
        icon: <OrderedListOutlined />,
        label: "停车员考勤记录",
        component: React.lazy(() => {
          return import("../view/business_process/llegal_vehicle.js");
        }),
      },
    ],
  },
  {
    key: "/message",
    icon: <WhatsAppOutlined />,
    label: "消息管理",
    children: [
      {
        key: "/user/message",
        icon: <WhatsAppOutlined />,
        label: "消息",
        component: React.lazy(() => {
          return import("../view/message_management/message.js");
        }),
      },
    ],
  },
  {
    key: "/sales",
    icon: <TableOutlined />,
    label: "营销管理",
    children: [
      {
        key: "/sales/list",
        icon: <TableOutlined />,
        label: "优惠券",
        component: React.lazy(() => {
          return import("../view/sales_management/discount.js");
        }),
      },

      {
        key: "/sales/record",
        icon: <TableOutlined />,
        label: "充值返利管理",
        component: React.lazy(() => {
          return import("../view/sales_management/record.js");
        }),
      },
      {
        key: "/sales/back",
        icon: <TableOutlined />,
        label: "营销配置",
        component: React.lazy(() => {
          return import("../view/sales_management/back.js");
        }),
      },
      {
        key: "/sales/marketing",
        icon: <TableOutlined />,
        label: "充值记录",
        component: React.lazy(() => {
          return import("../view/sales_management/marketing.js");
        }),
      },
    ],
  },
  {
    key: "/service",
    icon: <SmileOutlined />,
    label: "客服管理",
    children: [
      {
        key: "/service/feedback",
        icon: <UserOutlined />,
        label: "客服反馈",
        component: React.lazy(() => {
          return import("../view/customer_service/feedback.js");
        }),
      },
      {
        key: "/user/set",
        icon: <UserOutlined />,
        label: "反馈管理与配置",
        component: React.lazy(() => {
          return import("../view/customer_service/set.js");
        }),
      },
      {
        key: "/user/results",
        icon: <UserOutlined />,
        label: "反馈处理",
        isShow: false,
        component: React.lazy(() => {
          return import("../view/customer_service/FeedbackResults.js");
        }),
      },
      {
        key: "/user/results1",
        icon: <UserOutlined />,
        label: "反馈处理",
        isShow: false,
        component: React.lazy(() => {
          return import("../view/customer_service/FeedbackResults1.js");
        }),
      },
      {
        key: "/user/record",
        icon: <UserOutlined />,
        label: "人工反馈记录",
        component: React.lazy(() => {
          return import("../view/customer_service/record.js");
        }),
      },
    ],
  },
  {
    key: "/data",
    icon: <SelectOutlined />,
    label: "查询统计",
    children: [
      {
        key: "/data/user_statistics",
        icon: <SelectOutlined />,
        label: "用户统计",
        component: React.lazy(() => {
          return import("../view/data_statistics/user_statistics.js");
        }),
      },
      {
        key: "/data/message",
        icon: <SelectOutlined />,
        label: "消息统计",
        component: React.lazy(() => {
          return import("../view/data_statistics/message_logging.js");
        }),
      },
      {
        key: "/data/orders",
        icon: <SelectOutlined />,
        label: "订单统计",
        component: React.lazy(() => {
          return import(
            "../view/data_statistics/orders_received_statistics.js"
          );
        }),
      },
    ],
  },
  {
    key: "/financial",
    icon: <TransactionOutlined />,
    label: "财务管理",
    children: [
      {
        key: "/financial/menu",
        icon:<TransactionOutlined />,
        label: "财务报表",
        component: React.lazy(() => {
          return import("../view/financial/menu.js");
        }),
      },
    ],
  },
  {
    key: "/system",
    icon: <SettingOutlined />,
    label: "系统管理",
    children: [
      {
        key: "/system/version",
        icon: <SettingOutlined />,
        label: "系统版本",
        component: React.lazy(() => {
          return import("../view/system_settings/version.js");
        }),
      },
    ],
  },
];

export default router;
